<?php
namespace Apps\Front\Controllers;
use Phalcon\Mvc\Controller;
use  Apps\Model\Area;
use  Apps\Model\Trans;
use  Apps\Model\Cangwei;


class CangweiController extends Controller{


    public function initialize(){
        $this->view->setVar('title','daigou');
    }


    public function indexAction(){ 
        //$this->view->disable();
        $areas=Area::find();
        $trans=Trans::find("pid=0");
      	$this->view->setvar('areas',$areas);
      	$this->view->setvar('trans',$trans);
    }




    

   
}
?>